package model;

import java.util.Vector;

public class Terms {
  
    private Vector<String> terms;

    public Terms(){
      this.terms = new Vector<String>(0);
    }
    
    public void addTerm(String term) {
        this.terms.addElement(term);
    }
    
    public void setTerm(String term) {
        this.terms.addElement(term);
    }

    public String getTerm(int i) {
        return terms.get(i);
    }

    @Override
    public String toString() {
        String result = "";
        if (terms!=null)
            for (String t: terms)
                result += t + " ";
        return result;
    }
    
/*
 *     private Vector<Term> terms;

    public void addTerm(Term term) {
        this.terms.addElement(term);
    }
    
    public void setTerm(Term term) {
        this.terms.addElement(term);
    }

    public Term getTerm(int i) {
        return terms.get(i);
    }

    @Override
    public String toString() {
        String result = "HA! ";
        if (terms!=null)
            for (Term t: terms)
                result += t.toString() + " ";
        return result;
    }
 */
    
    
}
